<?php
class Modules_Common_DB_Workspace extends BaseObject
{
	public static function GetTableName() {
        return 'workspace';
    }
    public static function &ById($id) {
        self::GetById($id);
    }
    public static function &SearchByName($name)
    {
		$mcdt=new Modules_Common_DB_Workspace();
    	if(count(($ids=$mcdt->GetIds('WHERE name="'.Mysql::EscapeString($name).'"')))==1)
        	return $mcdt->GetByIds($ids);    	
    }
}
?>